<!DOCTYPE html>
<html ng-app>
<head>
	<title></title>
	<title>AAA订座</title>
    <!-- Bootstrap core CSS -->
    <link href="/libs/bootstrap.min.css" rel="stylesheet">
    <!-- Custom styles for this template -->
    <link href="/libs/dashboard.css" rel="stylesheet">
    <script type="text/javascript" src="/libs/angular.js"></script>
	<style type="text/css">
	html {
		height: 100%;
	}
	body {
		height: 100%;
	}
	
	* {
		margin: 0;
		padding: 0;
		list-style: none;
	}
	
	table,th {
		text-align: center;
		font-size: 20px;
	}
	</style>
</head>
<body>

	 <nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container-fluid">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="/">AAA订座系统</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav navbar-right">
          	<li><a href="/">首页</a></li>
            <li><a href="javascript:;">欢迎你,<%= username %></a></li>
            <li><a href="/loginout">退出登录</a></li>
            
          </ul>
            <div ng-show="<%= manger ? true : false %>">
               <form action="/search" class="navbar-form navbar-right">
                  <input type="text" name="name" class="form-control" placeholder="Search...">
              </form>
            </div>
          
        </div>
      </div>
    </nav>

    <div class="container-fluid">
      <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
          <ul class="nav nav-sidebar">
            <li><a href="/create">创建班级</a></li>
            <li class="active"><a href="/detail?act=m">位置管理</a></li>
            <li><a href="/allClass">班级管理</a></li>
            <li><a href="/quanxian?name=<%= username %>" onclick="quanxian()" ng-show="<%= username== 'admin' ? true : false;%>">权限管理</a></li>
          </ul>
       
         
        </div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
        <div class="jumbotron">
        		<% if (data.length == 0) { %>
					<h2>查无此人</h2>
				<% } %>
				<table class="table table-hover"> 
		
				<% if (data.length) { %>
					<h2><%=r%>的结果如下: </h2>
					<tr>
						<th>班级</th>
						<th>操作</th>
					</tr>
					<% for (var i = 0;i < data.length;i++) { %>
					<tr>
						<td><%=data[i]%></td>
						<td><a href="/detail?act=<%= manger ? 'm' : 's' %>&cNo=<%=data[i]%>">查看</a></td>
					</tr>
					<% } %>
				<% } %>
	
	
			</table>
		</div>
          
      </div>
    </div>
	
	
	
	


		

</body>
</html>
<script type="text/javascript" src="/libs/jquery-3.2.1.js"></script>
<script type="text/javascript">
	


</script>